Ext.define('App.controller.customerClubApply.CustomerClubApplyWindowController', {
	extend : 'Ext.app.ViewController',
	alias : 'controller.customerClubApplyWindowController',
	control : {
		'customerClubApplyWindow [action=save]': {
			click : function(btn) {
				var win = btn.up('window'),params = win.params;
				BaseUtil.submit(win.down('form'), params.url,function(data) {
					BaseUtil.toast(data.msg);
					Ext.StoreMgr.get(params.storeId).reload();
					win.close();
				});
			}
		},
        // 'customerClubApplyWindow ': {
        //     afterrender : function(win) {
        //         win.down("box").getEl().dom.src ="http://localhost:8080/zy/file/display/2018111481446732BE026805.jpg"
        //     }
        // }
	}
});